package com.ruoyi.coffee.domain;
import java.util.Date;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 咖啡微信用户对象 cf_users
 *
 * @author dxj
 * @date 2024-12-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("cf_users")
public class Users extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户唯一标识符
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String username;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickname;

    /**
     * 头像URL
     */
    @Excel(name = "头像URL")
    private String avatarUrl;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /**
     * 电子邮件地址
     */
    private String email;

    /**
     * 收货地址
     */
    private String address;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /**
     * 微信开放平台的用户唯一标识符
     */
    @Excel(name = "微信开放平台的用户唯一标识符")
    private String openId;

    /**
     * 积分
     */
    @Excel(name = "积分")
    private Long points;
    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer delFlag;

}
